﻿package model.business.product;

import java.io.Serializable;

public class ProductState implements Serializable{
	public static ProductState createState(int num){
		switch (num) {
		case 1:
			return new AvaibaleState();
		case 0:
			return new OutOfStockState();
		case 2:
			return new NewState();

		default:
			return null;
		}
	}
}
